package edu.byu.intex2.tester;

/////////////////////////////////////////////////////////////////
///   This file is an example solution for TwoTicketsPlus in
///   the ISys Core at Brigham Young University.  Students
///   may use the code as part of the 413 course in their
///   milestones following this one, but no permission is given
///   to use this code is any other way.  Since we will likely
///   use this case again in a future year, please DO NOT post
///   the code to a web site, share it with others, or pass
///   it on in any way.

/*
 * Note that I've placed this file *outside* the edu.byu.isys413.cca.data
 * package because it mimicks the GUI (which is also outside the data layer).
 * This prevents the Tester from ever calling package-protected methods.
 * 
 */



import junit.framework.*;
import java.sql.*;
import edu.byu.isys413.cca.data.*;

/**
 * JUnit requires that all tests be contained in
 * a "suite" of tests. 
 * 
 * The database must be recreated before this is run
 * or some tests will fail.
 * 
 * @author Conan Albrecht <conan@warp.byu.edu>
 * @version 2008-03-03
 */
class TestDataLayer {
  
  /** 
   *  The JUnit framework calls this method to get the
   *  tests to perform.
   */
  public static Test suite() {
    TestSuite suite = new TestSuite();
    suite.addTestSuite(TestDataLayerTests.class);
    return suite;
  }//suite

  /** Runs the text-based version of JUnit */
  public static void main(String[] args) throws Exception {
    junit.textui.TestRunner.run(suite());
  }//main
}//class Tester


